home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 7: Sunsite / Linux Cubed Series 7 - Sunsite Vol 1.iso / system / serial / callback.001 / callback~ / callback / lib / dest / tagdnames.c < prev   
C/C++ Source or Header  |  1996-07-18  |  622b  |  24 lines

  1.  
  2. #include "dest.p"
  3.  
  4. void tag_dnames()
  5. {
  6.     unsigned
  7.     groupindex;        /* last parsed group of a user */
  8.     int
  9.     dindex;            /* index along the destinations */
  10.  
  11.                 /* the group-index of the group added last */
  12.     groupindex = lastuser_groupindex();
  13.  
  14.                 /* walk all destinations */
  15.     for (dindex = 0; dindex < ndestinations; dindex++)    
  16.     {
  17.                                 /* a possible user destination */
  18.     if (destination[dindex].dgroup == groupindex)
  19.             check_dname(destination[dindex].dname,  /* index of the name */
  20.                         groupindex);                /* index of the group */
  21.     }
  22. }
  23.       
  24.